<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    function f1(){
        console.log("调用方式1");
    }
    f1();

    function F2(){
        console.log("调用方式2")
    }   
    
    var f2 = new F2();


    function F3(){
        this.test = function (){
            console.log("调用方式3");
        }
    }

    var f3 = new F3();
    f3.test();

    </script>
</body>
</html>